<template>
  <div class="page-conten-container">
    <div class="page-conten-menu">
      <span v-show="isShowBack" class='detail-back-icon' @click="goBack()"></span>
      <span class="header-title">{{title ? title: menuName}}</span>
    </div>
    <div class='page-conten-page-wrapper'>
      <div class='page-conten-page'>
				<slot></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'page-conten',
  props: {
    title: String,
    isShowBack: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    goBack () {
      history.go(-1)
    }
  }
}
</script>

<style lang="stylus" scoped>
.page-conten-container
  background #fff
  width 100%
  height 100%
  display flex
  flex-direction column
  .page-conten-menu
    width 100%
    padded_box(border-box, 5px 0 15px)
    display flex
    align-items center
    .detail-back-icon
      width 36px
      height 36px
      margin-right 18px
      background url('~assets/img/meeting_ic_back@2x.png') no-repeat 0 0 / 36px 36px
      cursor pointer
    .header-title
      font-size: 14px;
      color: #353535;
      font-weight: 700;
    // flex none
    // padding-bottom: 23px;
    // padding-top: 13px;
    // font-weight 700
    // font-size 14px
		// box-sizing border-box
  .page-conten-page-wrapper
    box-sizing border-box
    padding 10px
    display flex
    flex-direction column
    justify-content center
    background #F2F2F6
    border-radius 6px
    flex 1
    // height calc(100% - 50px)
    .page-conten-page
      position relative
      background #ffffff
      border-radius 6px
      box-sizing border-box
      // scroll()
      height 100%
</style>
